Fix warning when template not found