fixed crash when tapping on the background

The app will crash on tapping on the background (button), when dismissTapAnywhere and disableTapToDismiss are all set to YES.