Test if textStyle properties exists before setting the print style