Fixed a crash when attempting to iterate over a non-iterable dataset