Validate entered commit hash after focus is lost.

Previously user wasn't able to type commit hash by hand.