fix error when failing to parse email