(bug 53367) check that sites and titles params are set before lookup

Change-Id: I51983c7fd11049b1399919f65d98a62693ecb59a
Merge "(bug 53367) check that sites and titles params are set before lookup"