CLOUDSTACK-3904 listHosts API fails in VMware setup when virtualmachineid parameter is passed

Changes:
- Pod and Cluster can be null, modified the query to append these only if non-null