Fix Black Dialog crash on Back button pressed.