Handle failure/absence of PhoneGap API on desktop browser more gracefully.