I20230712-1800
The root cause for the raised issue is in fact a mocked Viewer, which returns a null control, but it seems best to be fail-safe for similarly bad behaving viewer implementations. fixes https://github.com/eclipse-platform/eclipse.platform.ui/issues/934