Fix #3189, get_plugins_for_page didn't resolve inherited template the right way