Deduplicate assets

Fixes #2936

If two modules depend on the same webjar, there will be duplicate
mappings to the assets in that webjar.  This commit fixes that by just
taking the first.