Fix saving per-repository settings

A left-over "repository = None" meant all per-repository operations were
actually saving per user or per system instead.

Recent regression introduced by:

448e971d "Internal: Use User/Repository type checkers for /savesettings"