[CONTINUUM-1385] Fix JDO exception when deleting a project with build result attached to a project build definition