Prevent NPE when CloudStackAPI find vm by id