NXP-14548: Fix error after searching a document in the popup.