[CB-2235] Fixed file transfer whitelisting.

The user agent sometimes being set to nil in iOS6 eventually led to the whitelist regex checks being skipped.  Setting the user agent from the command delegate fixes this.