vSphere fixes #3072 and #3110

Fix following issues:
[#3110 Association of vSphere VMs fails](http://projects.theforeman.org/issues/3110)
[#3072 Vmware: error listing VMs](http://projects.theforeman.org/issues/3072)

Discussed with Dominic Cleal on Freenode IRC