Change in ovirt-engine[master]: core: Fixing NPE in case of endCommand failure