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 build, and first one is Failed. It can't be overriden 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 save commit. Because `BuildId` is always different.