Remove independent comments from list in CommentStore::getCommentsInRange()
Contributed by Simon Martens.