Fix rare NPEs in writeObject() and maybe other users of activateFully()