gogtl avoid npe on err (stderr)