Fix php error for deploy when have no files to deploy (only command to run)
Fix json return when  have no files to deploy. closes #2088