fix for mobile initialization failing if there is a Mega Menu heading with no sub-items