No longer throwing exception if input iterator is empty.