Fix #128: Crash trying to open popover while keyboard is visible