internal/graphicscommand: bug fix: call End even if an error causes
internal/graphicscommand: bug fix: call End even if an error causes

Without calling End, the graphics driver (especially Metal) state
might be stale and might cause another error.

Closes #2388

hajimehoshi/ebiten,hajimehoshi/ebiten