Ensure checking for topics or tags key in document doesn't raise errors