Issue #2303623 by ptsimard: Fixed custom_search outputting empty attributes.