Fix for cordovaRef.addConstructor is undefined

From the original issue https://github.com/phonegap-build/GAPlugin/issues/9