Send UIMOUSECLICK event on click to emptiness even if there is a modal element. Fixes #423.