mwjsduck-gen: Abort early and report exit code

This bash script is supposed to abort early with a non-zero
exit code if the jsduck test found any errors or warnings.

Change-Id: I2ae0976be866519dd9f41f4c02d78d300a494328
Merge "mwjsduck-gen: Abort early and report exit code"