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