BZ1018968 - After deleting a project incorrect dependency, build still fails
(cherry picked from commit fa831257eb8be6b48664e8104338119fea63c202)