There's a pretty fatal error where an empty code block will
trigger the throw Error statement. I suspect that it's because the
object for the message is { type: 'codeBlock', content: '\n' }.
It makes sense to just return the node if we have nothing to traverse within.