Fix AttributeError in update_view_loop

AttributeError: 'NoneType' object has no attribute 'focus_view'
when 'view_auto_close' enabled and manually closed repl view.
Merge pull request #164 from tetrahedral/bugfix

Fix AttributeError in update_view_loop