Fixes #1302: Do not attempt to set OnPcAdd before the script has been added