Set chaining handler when chaining text

Change-Id: If3ccfe268abde5fd0a52ce519f4a8d8ed3b15fb8
Calling handler when chaining for recursive overflow check

Change-Id: Ic419356aa73bd64e428c5cc2c1cac5a05aeb8fa3