Only change Modes if current GUI is null

Should fix #256