Updated the handling of sent_path.

  Now that we accept it might be NULL we need to care
 a little more about it.