Added compatibility for phonegap 2.9

Changes made in SmsPlugin.java class to make the plugin compatible with PhoneGap 2.9