Bug #2199: Better formatting for undefined elements