Fix regression in deploy key uniqueness check

There appears to have been a regression in 48628d31d59f007fbf4b6958eb2a48adedaef8e4 that made checking uniqueness of deploy keys global instead of scoped within a project.