Fix exposed module resolving.

When a theme module, declared in its index.js, was also installed in castor-core,
the module was not loaded in browserify.