Fixes #8815 - Corrects reference of non-existent variable in image search  template