(CE-891) Backport caching improvement for fetchModuleFromParser

Improves performance for multiple invokes of the same modules on a
page.
Merge branch 'CE-891' into dev