Use `''` as the default for repository and project

These parameters are not allowed to be None.  I don't konw why project
was hard-wired to `''` before, but it's not now.
`config.error` will raise and exception, will it not?  in this case, I'd rather not have `else:` branch.