[T-5489] [FIX] Prevent wrong error if invoice name is False

Merged Facundo Barral requested to merge T-5489 into 17.0

Merge request reports