Are you sure this is a bug? The point of the check, obviously, is
to prevent you from being left with just unmapped frame and thus
have no way to control the running XEmacs. We have a variable,
allow-deletion-of-last-visible-frame, that lets you go ahead and
delete the last visible frame. So far no one has mentioned this
variable's value.