[#2493] [GTKUI] Fix TypeError if active workspace is None