Fix crash when the participant detail view is no longer visible and a new survey is attempted to be created