BUG Fix issue with generating tree data for missing pages