fixed bug omitting muons from the lepton selection
implemented fix for possible vector out of range exceptions
Merge pull request #4486 from cms-btv-pog/JetFlavor-LeptonSelectionAndOutOfRangeFixes_from-CMSSW_7_0_6

Fix for jet flavor lepton selection and possible out of range exception: Backport from 7_2_X to 7_0_X