Fix a NPE on unload if stuff was not loaded. BZ 1115069