Added fallback for NestedMenuDecorator::getPagesForLevel() to prevent undefined  Value error