Added more error hanbdling to EmailParser.pm.