Protect weightedPerVmtype from undefined vmtypes