Add code to handle when the test expression is neither true nor false.

Closes PR 14564.
Or perhaps simpler: `(if #t tst.opt (begin thn els))`.