Project model should not resolve fail promise

This is for #9278 

`getAllFiles()` always resolves, but this is too early to resolve because ProjectManager doesn't see the error.