more robust fix for mobile init failing at Mega Menu headings