Fix crash in picking for zero-length path collection