fixed N+1 query in admin/media/search page