Fix for V search crash issue #6900.

Fix for shift+v search crash issue when drawing line from/to same tile (#6900).