CB-5085 device.cordova returning wrong value