return null rather than exception when vm not found. fixes a test.
Prepare