Fixed failure of Model.get when using a subclass.