[Jenkins] fix the crash in comment trigger
Merge pull request #5651 from lmskater/fix-comment-trigger

[Jenkins] fix the crash in comment trigger