[ccplugin] do not crash if an entity failed to serialize [applied]