Fixed detecting missing project and throwing correct exception