raise exception if ModelAttribute is called without Model

Merged sblondon requested to merge (removed):master into master

If sheraf.ModelAttribute() is called without sheraf.Model, explicit exception should be raised (currently it's an AttributeError because it's the model is a Nonetype).