Extracted cleanly onto becc47a without inherited #655/#662/#663 commits.
Adds an early return when !result.IsError in diagnosedShellTool.Call so a
successful command whose stdout/target data contains 'command not found' is
never misdiagnosed as a failed invocation, with regression test coverage.
Co-authored-by: AseemPrasad <aseemprasad0520@gmail.com>