Rigorously check TextAction's injection
This makes it consistent with SingleKeyAction

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=137522932
1 file changed