Fixes bug when extracting textStyle from TextAppearance