Make sure that GError is NULL before it gets set