RIPPLE-26 Fixing Contacts API for correct functioning with cordova versions later than 2.2.0