Fix escape key when no reveal is shown

If you try to press escape key when no reveal modal is shown; an error is thrown. Fixed.