Fix bug when searching for the best intersection between two VAMs
When searching for the best intersection between two VAMs, the condition to actually keep the current intersection as the best was wrong. It was thus keeping adding wrong legs at the end of the journey.