Fix some bugs when configuration is invalid, make sure analysis cannot be run when a valid configuration is not found