Fix incorrect coercison to number of Git revision in build tool.

Refs #17176.

(cherry picked from commit 828de165b7b0b05976b482947351270d30322d7a)

Conflicts:
	build/version.js