fix(errors): guard against null error stack