Fix gh-2210, Join.grad crash with first input dtype being *int*

Done.