Make buildmessage parseStack more robust to multi-line errors.

This makes Handlebars parse errors not crash.