checkLocalNames: fix --wiki option

Otherwise it tries to query a database named bool(true), which
obviously fails.

Change-Id: Ib36b148199fbba06f9e64bee90f48cdda56976e2
Merge "checkLocalNames: fix --wiki option"