Fix  always output "PhoneGap Platform is missing" bug