has_attributes should raise an exception if the datastream property

isn't specified.

Fixes #265