Fixed iOS crash when app is refused in settings