Fix possible crash when mainDelegate released before PTCMultipleDelegate.