bugid: 96190 -- added some defensive programming around dom querying in ...

...search indexing