Fixed crash in LiveWire tool

Added FilterEvents method to SegTool2D which is call by superclass mitkEventStateMachine.
Removed obsolete CanHandleEvent function.
Added check for valid member to avoid crash during tool stress tests.
Fixed compile error
Merge branch 'bug-18479-live-wire-crash'