Added some NaN detection in Debug builds for CoreGraphics