WICKET-5581 CachingResourceStreamLocator is not extension-aware

(cherry picked from commit cd24f18a2f2667857a5e5b86744bf1e129d7bba8)