Handle undefined elements.