[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.

Quick r?