Avoid showing "null" in JavaScript tooltip for properties with no label.
Introduce new utility function that returns plain text and use it where
apropriate.

Change-Id: Ia525f00b73f05d815ffaaa57809dd1712adb02bc
Merge "Avoid showing "null" in JavaScript tooltip for properties with no label. Introduce new utility function that returns plain text and use it where apropriate."