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
Merge pull request #287 from haiwen/patch-23-fix-a-bug-of-segment-fault

fix a bug causing segment fault