Prevent sending empty line to engine after multi-leg move