clar helper: don't dereference giterr_last() if it's NULL It can cause segfaults if the call didn't set an error