Ensure search results XTemplate have unique div id's

part fix for #848