Fix NPE for ChangeIdAnnotator

Check whether gerritCause.getEvent() returns null or not.

Fix for JENKINS-22634
https://issues.jenkins-ci.org/browse/JENKINS-22634