Preview panel: Improve robustness of resource loading from the book

Ensure that resources are always loaded from the current container, even
if the current container was changed since the base URL was specified.
While this is unlikely to happen, it is best to be robust.