Debugger: Fix QTextCursor dumper

Change-Id: I9e26e4dcee19caa0b4292655efdfeda5f1232714
Reviewed-by: hjk <hjk121@nokiamail.com>