Correctly construct avatar URL in production.

Passing null is not OK because then ROOT_URL is ignored (because option
is passed, as null, instead of not being passed at all).