Simplify the nil/false test in #canonicalize.