[TASK] Improve performance of page template set resolve logic

By reordering, it's ensured that methods which are quite high in resource consumption are absolutely only called upon when needed.