Use BuildTypeId instead of BuildId

See https://jira.atlassian.com/browse/STASH-3219

If TeamCity build is canceled and another one is started, then Stash will show two builds, and first one is Failed. It can't be overwriten by Success build reexecution.

Also if build failed on of external problem it never be replaced by Success run for the same build on the same commit. Because `BuildId` is always different.