Fixes mozilla/openbadges#877; pass extraction errors to callback