Fix exception supplying width attribute

There was an issue when TextView doesn't have layout width and height.