Allowing null to be passed to newEntity()

This helps creting new entities without running any validation