Fixed problem where app died on startup if login dialog not showing.