Add a test for the problem.
Assemble null index key as literal null.
Include test without WHERE condition now that promotion is better.