Fix 'Display all' in the media find dialog

Bad escaping leads to a JS error for media only