Issue #2141417 by babruix, Sam152, jessebeach: Trays without headings throw a JavaScript error when the non-existent heading text is accessed