Fix #4511 Gravatar issue

See #4511 for more details.