Small fixes

- Fixing urlToLocal when remoteUrl is empty
- Fixing Utils.isCordovaEnvironment to detect BlackBerry devices, fixing sync problems