ide/Project: Fixed a crash in LegacyLoad introduced by eff6d0cfcbf71a54870f8a965174bb641b24fcb1