Fixed libloadorder 6 compatibility.

Didn't take into account behavioural differences when last updating the
code.
Fixed JS error when no global messages are present.

If the error occurs, this causes the report to be empty.
Fixed threaded libgit2 crash.