fixed Dialog buildTextLines to work w/o context