cmd/api: always do API check if hg is available

Fixes Issue 6124

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/13500046