Fix an invalid memory read in crossing detection.

Fixes a regression where the 1-bend visibility graph code broke
crossing detection code and introduced an invalid memory access.