jQuery.attr returns `undefined` if an element does not have an attribute. We want an empty string, rather than the default of coercing `undefined` to the string `'undefined'`.