Fix Bug 891021 - Protect against undefined user objects during searches.

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