fix(label): fix endLabel
fails with null data
#18841
Merged
endLabel
fails with null data
#18841