Respect true/false settings in namespaces to be searched
This code never checked if the namespaces that were configured were
enabled or not. Both the user options and the global config use
true/false to indicate if the namespace should be included.
Bug: T219455
Change-Id: I80b67a7747368b78950ea4a1b14bdaecec163836