Allow passing error = NULL to authinfo_simple_query.