Change in vdsm[master]: Fix two regressions introduced by the API.py refactoring