Workaround the TypeError in _filter_deps(). BZ 1108625