[api] create "deleted" project and repository when needed

fixing github openSUSE/open-build-service issue 812