Fixed crash when vm shares parameter is not present in config file