Fix an NPE in DeployToMobileAction when no resource is selected

@devoncarew