remove unnecessary code

getComment() returns always null if the comment is invalid, so it mustn't be checked
remove unnecessary code
Merge pull request #1690 from joshuaruesweg/patch-14

remove unnecessary code