metadata: Fix broken retrieval for screenshots

Test could never have been evaluated to true

(cherry picked from commit a50a24b0f408957885ff928569a061df07e5e993)
metadata: fix stray declaration

(cherry picked from commit eafce8507591311bbbb1d412d28b38113bb9e358)
metadata: Fix GetGrabber

It would never have used the grabber set in the inetref

(cherry picked from commit 61a511562c00858ffb767a24ac9fd586cdf83fe2)
metadata: also set collectionref to new format

(cherry picked from commit 79aea142fc0d23c25a0f79085cf7df0adfb87e07)
metadata: no need to re-run the search when a match has already been found

(cherry picked from commit 43785e4137cc3eaf4174fdfa62e15061765ba300)
metadata: properly handle media search type if we already have an extended inetref.

(cherry picked from commit 30b03cc2b86e949b434b7afc207f12d35e6c6d87)