Replaced deprecated function for 2.4 compatibility

`Widget::wrapFormElementWithError` to `Widget::Error`