resolve(): Take care not to trip over NULL modules
Simplify IPE runPasses