Fix infinite loop if offline or can't locate a project.
Fix infinite loop if offline or can't locate a project.

shepheb/foam,jacksonic/foam,jlhughes/foam,mdittmer/foam,osric-the-knight/foam,jlhughes/foam,foam-framework/foam,foam-framework/foam,shepheb/foam,foam-framework/foam,jacksonic/foam,mdittmer/foam,osric-the-knight/foam,jacksonic/foam,jlhughes/foam,osric-the-knight/foam,mdittmer/foam,shepheb/foam,foam-framework/foam,jacksonic/foam,foam-framework/foam,mdittmer/foam,osric-the-knight/foam,jlhughes/foam