Raise error when missing attribute is referenced