More strict null comparisons in the EmbeddedDocumentSerializer.