Fixed crash when pressing home button instead of back.