fixed imminent nullpointerexceptions for trying to open closed projects