errorClass: Further protect against nil errorMap.  Fixes #285