[processing] fix wrong behavior in Join by location alg (fix #11736)