Removed bug with Android hardware back button

Now the hardware back button on Android don’t crash the app and is
handled correct.