Avoid multiple gdiplus calls if strCurrentText is 'invalid'