Fixed bug when rotated text is empty string or null