Added access to past imported modules.

[Delivers #57443908]
Added more informative logging on lookup error.
Self-review.