Fix NPE writting null MAP or ARRAY in HiveRecordSink

Fix https://github.com/facebook/presto/issues/1885
`stackRepresentationToObject()` ignores nulls and is only called from here, so I think the cleaner fix is to make the method take a `String`, then do the `utf8Slice()` call inside the method after the null check.