BUG check both left and right indexers for None (fix 2843)
Fixes #2843 and adds the two test cases suggested there.

Thinking about it, I will refactor and pull out the two "is not None" checks into an outer if statement.
