Prevent deadlock when no commands in non-interactive mode

Change-Id: Ie81baad23161977a76233fec75aea9b66b276d3f
1 file changed