Can you add checks for this line (and the one below it) in case the category isn't in the mapping file?