[TASK] Throw RuntimeException if no template is selected

This patch makes the PageProvider throw an RuntimeException when the (FE context only) method getControllerActionFromRecord() resolves an empty template reference.