fix THREE.WireframeHelper for indexed BufferGeometry

as a followup to #4198