pts_Graph: Fix text_string_width/height failures on some PHP versions