Checking project for null to fix the unit test build.