Fix #8996 (Composer crashes QGIS when setComposition() method called)