[fix] Handle errors in highlight.js