[bug 1087391] Fix POST API user-agent inference code

When using the POST API, we should always infer the browser_* fields
from the user-agent if we're given a user-agent.
Merge pull request #388 from willkg/1087391-api-infer

[bug 1087391] Fix POST API user-agent inference code