title: TypeError: Cannot read property 'properties' of undefined
body: <p>I have a Node.js/Geddy app which was working untill a few minutes ago. Now, when I try to run it, I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/pGSf1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pGSf1.png" alt=""></a>
  </p>
  
  <p>I have many models, but for one of them, I get this error.</p>
  
  <p>The error is shown because in the file whose path is displayed in the console the following is undefined:</p>
  
  <pre><code>reg[ownedModelName]
  </code></pre>
  
  <p>where</p>
  
  <pre><code>reg = model.descriptionRegistry
  </code></pre>
  
  <p>and <strong>ownedModelName</strong> is given by</p>
  
  <pre><code>if (assnKey == 'belongsTo') {
          ownerModelName = modelName;
          ownedModelName = self.name;
          idKey = modelName;
        }
        else {
          ownerModelName = self.name;
          ownedModelName = modelName;
          idKey = self.name;
        }
  </code></pre>
  
  <p>Actually, I know the value of <strong>ownedModelName</strong>, but I don't know why <strong>reg[ownedModelName]</strong> is undefined.</p>
  
  <p>This is how the model which triggers the error looks like:</p>
  
  <pre><code>var RenderingForm = function () {
  
   this.defineProperties({
      name: {type: 'string'},
      description: {type: 'string'},
      mode: {type: 'string'},
      helpText: {type: 'string'},
      noEvaluation: {type: 'boolean'},
      compatibleProblemTypes: {type: 'string'}
    });
  
    this.validatesPresent('name');
    this.validatesPresent('description');
  
  
  };
  
  RenderingForm = geddy.model.register('RenderingForm', RenderingForm);
  </code></pre>
  
  <p>Why is that undefined and how can I solve my problem?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I've tried to create the same app on another partition, it didn't work, and now when I've tried again to run the old app, I get the same error, but for another model than before.</p>