#6707 fix a crash with dir() on an uninitialized module
3 files changed