Fix Edge case handling in table lookup where requested X or Y were equal to a bin value