Fix Bug 895698 - Fix limit on search queries not being applied

https://bugzilla.mozilla.org/show_bug.cgi?id=895698