[TASK] Further simplify page template resolving loop
[TASK] Add a break statement when sub template is resolved
[BUGFIX] Inherited sub template not used as active template