Avoid division by zero report by static analyzer.


Automatically ported from CMSSW_7_2_X #5315