[CONTINUUM-1301] Fix violation of foreign key constraint between ProjectDependency and BuildResult tables