Fix for cordovaRef.addConstructor is undefined

https://github.com/phonegap-build/GAPlugin/issues/9