Return a 400 instead of 500 when feed URL can't be resolved
fix issue with TryGetEnvironmentVariables api
fix 1372 due to git HEAD file corrupted issue