Refs #6. Added some error checking around the commit hash API call