Don't try to kill child process if it has no pid

If we try that, the agent ends up killing itself instead. Oops!