Fixed a bug when trying to draw empty text