Fix HAL-440 / BZ1018800: Cannot use -1 in attributes where it's a valid value