Add a wait action 0.1 second between the first action (setting the text) and the second (displaying the size of the text).
Apparently, when you set the text, it gets updated/displayed only the following tick. So on the same tick, you have a "null" value for its size.
Check in my example above.