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