improved the performance of the Twig loader by not registering a chain loader if not needed