Fixed NPE in CommentsRefactoring.