added a check to ensure we have a valid number for an id and don't pass undefined through
added a check to ensure we have a valid number for an id and don't pass undefined through

isuttell/ceres-framework,isuttell/ceres-framework