Attempt to load all modules before reporting errors

Instead of reporting only one “module not found” error. This
fixes #8322