You can remove this if block. That profile is getting set within ProjectLoader.Load now