Prevent retrieving non retrievable modules.

Check the module is searchable before retrieving the bean. This prevents trying to retrieve more esoteric modules (for example attempting to retrieve an instance of 'Administration' causes a DB error).