fix paths of searchByMime results on substorages

Together with #8350 this fixes single shared images in the gallery app.

cc @DeepDiver1975 @schiesbn