Fixed one crash bug and fixed goal-selection bug #339

Fixed bug #339: selecting a goal pose in the 3D view when another exists moves the other point.

It seems the original author did not realize that when a "click" event happens, there will also be a "mouse down" event which happens first.  The "mouse down" event code was only concerned with the start of a drag, so caused trouble in the case of a click.