FastTimerService: add protection against empty Paths or EndPaths

This is the back port to CMSSW_7_0_x_ of #3434