Implement label (tag) parsing and injecting in new body tag
Fix errors handling invalid pagetrees
Fix cleanup of empty pagetrees