assets/xss-filtering: Ensure to use correct directory
When attempting to fetch image bytes from the archive, ensure to
use the correct directory id to resolve image bytes from a path.
Previously only the parent directory of the currently browsed
object was considered, leading to 404 errors when attempting
to render a README with images in a sub-directory.