In between the 1st storeText command and the 2nd storeText command, you have a click command. The click command may trigger a page transition which could take several seconds. Then the 2nd storeText must be fired only after the transition ceased and the page has got settled.
You may want to insert a pause command before the failing storeText command.