Fixed email sanitizer to properly handle null emails