routing: check loop conditions at end
routing: check loop conditions at end

This prepares for routing to self. When checking the condition at the
start, the loop would terminate immediately because the source is equal
to the target.

LightningNetwork/lnd,LightningNetwork/lnd,aakselrod/lnd,aakselrod/lnd