[Core] When ProjectFiles are first added to a collection, they often don't have a Project set

This makes their VirtualProjectPath's unreliable, so we need to update them
once their Project is set.

Fixes bug #13406