Change in ovirt-engine[ovirt-engine-4.1]: core: Fix bug in discard checks