For those looking to fix this sooner, I was able to resolve by replacing the public function render with the below update function:
public function render( $params ) {
$p = array(
'id' => ( isset($params['id']) ? (int) $params['id'] : 0 ),
'mode' => ( isset($params['mode']) && $params['mode'] == 'widget' ? 'widget' : '' ),
);
return $this->getView()->renderHtml( $p );
}