Fix picking of terrain with normals.

Fixes #2219