CS-4786: js fix for searching of image inside attach image media library view