Removed empty value check in Similarity.compute().