Correction of load_mapping script

— Corrected load_mapping to make sure it won’t throw an exception when
there are no more mappings to evaluate.