Fix gravatar fallback in render_primary view