Update UA check to fix false negative on WP 8.1

Fixes #1471
Merge pull request #1472 from gaearon/patch-1

Update UA check to fix false negative on WP 8.1