Fail the build when JSDoc fails.

Hopefully fixes #1087.