Fix AttributeError in update_view_loop

    AttributeError: 'NoneType' object has no attribute 'focus_view'
manually closing repl view with `view_auto_close` enabled.
`ReplView._view.window()` would be `None` in that case.