followup fix for #736440 - prevent "Fatal error: __clone method called on non-object" reported in #988890