User-agent should work when the site is None

Change-Id: I802bd54def87069b1a205cd0f563081a629ac1fb
Merge "User-agent should work when the site is None"