Fixed the value is not returned problem after calling MOAITextLabel:getDims.

See #1009 #998