Prevent a crash when copying a PasteCanvas before defining its canvas parameter.