Resolve a CanvasOrId to its 2D context, logging and returning null on failure.
Canvas element or its DOM id.
The 2D rendering context, or null if the canvas or context is unavailable.
Resolve a CanvasOrId to its 2D context, logging and returning null on failure.