remove unnecessary code

getComment() returns always null if the comment is invalid, so it mustn't be checked