[JENKINS-23365] Noting some nullness conditions; calcRevisionsFromBuild in particular is tricky.
JENKINS-22028 was only fixed in 1.565
Merge REMERGE_HEAD into HEAD