Issue #2820832 by emielbeinema, larowlan: If attribute field is empty prevent attribute from being printed