email: Don't assume `extra_headers` has content in get_message()

The default is None, so we should at least handle that case
gracefully.