Fixes #3854 - exception on loading an uninstalled module