2.26: don't set a module as loaded until we check if it is loaded already.