Docgen: Exit with error status code if there are warnings.

This way the Jenkins job will be marked failure if we introduce
regressions in the validity of the syntax.

Change-Id: I80ea147b96632412913193600960d1cf4127ed25
Merge "Docgen: Exit with error status code if there are warnings."