(issue #10873) Fixes missing version on roadmap

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.