Fixed crash on return to MainActivity from camera