Exit with error if unresolved links or macros are found.

This can then block publishing process.