doom-module-from-path fails to deduce the module from some paths (it seems to struggle with doom-user-dir in some cases), causing a (aref nil 2) error (see #6845). Fix: #6845