Fix an unload NPE.