Handle nil user agents