Fixed crash resulting from closing the last editor in the IDE not setting current editor to NULL