Update UA check to fix false negative on WP 8.1

Fixes #1471