Issue #1937722 by hass, jessebeach: Navbar enable cause Invalid argument supplied for foreach() in element_children()

Signed-off-by: J. Renée Beach <splendidnoise@gmail.com>