ui/lc.scm (handle-list): Improve checks in `cond' clauses.