[Fix #764] Handle heredocs in TrailingComma

There was a bug that made the cop consider commas inside heredocs as
trailing commas if the heredoc was part of the last item in a list.