fix a bug causing segment fault

Because ``seafile_get_repo_list`` leaves parameter ``error`` unchanged,
``error`` is still NULL-valued when the returing ``repos`` is NULL