Don't crash when using UA spoofer
Merge pull request #43 from iddo/master

Prevent Javascript error when using a UA spoofer