Handle empty array case for whereIn, fix #477