[Fix #1167] Fix handling of multi-line parameters in TrailingComma

Hashes and other items spanning more than one line were not handled correctly when it came to checking if the closing bracket was on the same line.