Throw an exception if the command output is empty