Update WidgetTrait to implement an exception when trying to get neither a property nor a relationship