improved the addon_view decorator addon.id replacement (bug 948357)

See [bug 948357](https://bugzilla.mozilla.org/show_bug.cgi?id=948357)
This was originally met and fixed in [bug 944107](https://github.com/mozilla/zamboni/pull/1472) and got splitted here.