Don't call comparator with undefined in BinaryTreeStrategy