BUG: module_pages | pageeelement -> the class-names of the linked object are fetched from the element in case the internal propeties are not yet populated. otherwise the indexing could go wrong for new elements.
(cherry picked from commit d193d89)