fix an error that could occur if a webui search only had 1 result