Added null-check for testVMId
Merge pull request #45 from maksimov/2014.03

Added null-check for testVMId