Fix #10873: version inheritance in roadmap and changelog

Bugs with a target version that is inherited from a parent project
are not shown on the roadmap.
This fixes this and leaves the caching feature intact.

Many thanks to Peter Bruin for providing a fix for this long-standing
issue.