Do not add null as directory

This patch checks if the directory set in Config is not null before
adding it to the finder. Without the check Symfony/Finder throws an
Exception.