Fix sysrev-related error handling

Don't ignore errors from `getHead`.
Don't return strings as errors as they lose stack information.
Don't obscure exceptions occurring in `getRevision` callbacks.