Fix for jet flavor lepton selection and possible out of range exception

* fix for a bug omitting muons from the lepton selection
* fix for possible out of range exception in jet flavor clustering