CFormButtonElement with custom type

When rendering a CFormButtonElement using a custom type (hence custom widget) it forces the widget to have a name attribute.

File: web/form/CFormButtonElement.php

Line: 122

The description is clear -

it say:

ARG!!! not cool, really. what to do if i am passing a 3rd party widget? (rhetorical question)

Extend the CFormButtonElement class just to override this one line?