Make error mailer message checking account for object ids