Fix NPE for ChangeIdAnnotator

Check whether gerritCause.getEvent() returns null or not.

Fix for JENKINS-22634
https://issues.jenkins-ci.org/browse/JENKINS-22634
Merge pull request #144 from rinrinne/annotate

Fix NPE for ChangeIdAnnotator