Fix RuntimeError/StopIteration when trying to collect package with "__init__.py" only.