fix right_join(), add tests

correct the right frame row index to be used,
if there's no matching rows in the left frame
Merge pull request #788 from alyst/fix_right_join

Fix right_join()