If a module build reports errors, don't try to load it

... just to find out that it didn't build.