Defensive coding: HTTP_USER_AGENT may not be present on request.META.