If Gui pointer is set to NULL don't process event