Allow set 'allSelectedText' to null to disable 'allSelectedText'

It is useful for my case.