GRAILS-10799 related: Test null handling in JSONWriter