Merge "[GraphicsEnvironment] Avoid null access."