BUG: ctkConsole: Fix delete/BackSpace when cursor = commandEnd/InteractivePosition
BUG: ctkConsole: Fix delete/BackSpace when cursor = commandEnd/InteractivePosition

* was deleting wrongly if
   cursor.pos = commandEnd() and
   there was a selection in the message_output_area
* was deleting wrongly if
   cursor.pos = InteractivePosition and
   there was a selection in the message_output_area

Co-authored-by: Jean-Christophe Fillion-Robin <859d3fd8ca46de62a08fca56c64958e301f5352c@kitware.com>

SINTEFMedtek/CTK,commontk/CTK,CJGoch/CTK,jcfr/CTK,commontk/CTK,SINTEFMedtek/CTK,jcfr/CTK,SINTEFMedtek/CTK,CJGoch/CTK,CJGoch/CTK,commontk/CTK,SINTEFMedtek/CTK,jcfr/CTK,SINTEFMedtek/CTK,CJGoch/CTK,jcfr/CTK,CJGoch/CTK,jcfr/CTK,commontk/CTK