Fix ES app search ID handling

Looks like fallout from 16dd9751