module: ensure `format` is never `null` with `experimental-detect-module`
This change ensures that the format is consistently defined when experimental-detect-module
is enabled, allowing tests to pass in both experimental detection and standard Node environments.
(Fourth PR is the charm)