Fixed segmentation fault on safe_qgis.widgets.