Add missing test case for writing unknown attributes
Merge pull request #15437 from sgrif/sg-missing-test-case

Add missing test case for writing unknown attributes
Treat invalid uuid as nil