Fixed raising exception when "pkg search" yields nothing