Fixed bug in cordova availability plugin.