Fix an NPE in DeployToMobileAction when no resource is selected and the action is invoked
Address comments
Merge pull request #2034 from ussuri/fix-deploy-to-mobile-npe

Fix an NPE in DeployToMobileAction when no resource is selected