New records should remain new after yaml serialization
Merge pull request #15444 from sgrif/sg-yaml-new-record

New records should remain new after yaml serialization
Feature requests should be made on the mailing list, not submitted to
the issue tracker. See also #15455 [ci skip]