If you create a gauge with no data points, latestValue will be null.  It can happen in some edge cases (in development and testing), but we should rarely (if ever) see this in the wild.