[JBIDE-18187] - Handle closed projects.

safe guard against closed projects.