Updated method to return a null simpleobject if no vm found