Fix bug 934571 - Set error when project cannot be found in db