[bug 1033091] Fix product/topic inheritance for localized docs.

r? (@mythmon)

We should file a bug to add test coverage to the API.