Fixing ReferenceError in fixError function

This fixes a ReferenceError that is caused when the function in question has to fall back on res.statusCode.  (I'm pretty sure this changes it to what was intended, but correct me if I'm wrong).

See mozilla/openbadges-badgekit#302