Usergrid 2485: Fallback to default when platform detection fails in JS SDK