Fix: Nil-Pointer Exception in ResourceAllocation
Fix: Nil-Pointer Exception in ResourceAllocation

Closes: #2558

bruceadowns/govmomi,bruceadowns/govmomi,bruceadowns/govmomi,vmware/govmomi,vmware/govmomi,vmware/govmomi