Fixed issue with the Robot Editor when deleting text, where text before
the deletion was removed as well.