Fix navigator.userAgent and appVersion undefined

In rare cases, navigator.userAgent and navigator.appVersion are
undefined. Browser detect attempts to return 'unknown' when these are
not provided, but an error was thrown when these were undefined.
makes sure we're searching a string in searchVersion
Merge pull request #66 from gameclosure/fix-browser-detect-edge-case

Fix browser detect edge case