Fixes "Trying to get property of non-object" when trying to lookup a module somewhere in the code when the module isn't installed/found in the database
Merge pull request #2925 from SnakeSVx/2.2/develop

Fixes "Trying to get property of non-object" when trying to lookup a mod...