Rerank sim handle null and zero scores