Fix multiplex close on blank line.

The multiplex mode was checking whether an empty line should close the active mode by checking the active mode object instead of the active multiplex configuration object. As a consequence, the active mode was never closed.