Fix: server.go hangs when typescript finds only one error
Fix: server.go hangs when typescript finds only one error

Change-Id: I330e6a60036bec97cab688c89cfe0509fbb43ec5

GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit