The motivation behind the original implementation was probably to show disabled modules when running `hugo mod graph`. Fixes #11376