The crash happened because the transfer fucntion for && and ||
unconditionally tried to retrieve the value of the RHS. However, if the RHS
is unreachable, there is no environment for it, and trying to retrieve the
operand's value causes an assertion failure.
See also the comments in the code for further details.
What do you think about making this a const reference? Alternatively, let's document that it must not be null?