[Core] When cloning a ProjectFile, don't copy event handlers

Fixes crash when copying files between projects.