Fixed a "Undefined variable" bug when fetching mail

PHP Notice:  Undefined variable: customer_id
PHP Notice:  Undefined variable: contact_id