Fix choosing the wrong splitting type

If the commands for the top and down pane in a vertical split are empty, the
implementation erroneously created a horizontal pane instead.