issue #22138: bugfix in getLastCommentString
Merge pull request #1121 from shackbarth/22138

issue #22138: bugfix in getLastCommentString