Fix bug when trying to serialize without embedded objects being loaded