container.directory: fix wrong check for None
container.directory: remove unnecessary refilter()