Fix 'invalid value' error on failed MIF delete. See #10900