Menu: Fixed JS error when AJAXed-in menu is prevented from loading due to security restrictions