Raise error when the viewer is disabled
This PR raises error when the viewer is disabled, thus making the server fail quickly instead of relying on moon-landing.

Fix #1004.
Raise error when the viewer is disabled: This PR raises error when the viewer is disabled, thus making the server fail quickly instead of relying on moon-landing.

Fix #1004.