Fixing an exception being thrown with the Symfony Finder