shell: hides empty error box entering realm window

Fixes: #935