[history] Use the nsresult from the GError
[history] Use the nsresult from the GError

mozilla-headless-services now encodes the nsresult in the GError so we
can use that to return a more accurate error code.

clutter-project/clutter-mozembed,clutter-project/clutter-mozembed,clutter-project/clutter-mozembed