People smugglers have been taking advantage of a loophole in French law which allows them to avoid being stopped by police.