search: silence JSON decode errors

Closes #21506.
Closes #21508.