TAJO-974: Eliminate unexpected case condition in SubQuery. (missed ticket close)

Closes #93