Fixed incorrect release of the CTFont if the font is nil.