Improve error handling for bad reference emails