Loss of satellites is not what made it hit the tree. Satellites provide no data for obstacle avoidance, in fact during these tasks the GPS is piratically in a standby mode.
Avoidance logic makes its decisions mostly from obstacles location and distance, drone altitude, speed, position and more...