Added exception for uninitialized iterators