Remove dependency on org.apache.cordova.device for obtaining platformId

Tested this as best I can, both with http:// origin and file:/// origin and confirmed the cordova.platformId string looks both available and set during that code execution.