Connection Probabilities for Loop O(N) Models and BPZ Equations