Statements with a nested query and a condition that was always NULL threw an IndexOutOfBoundsException.