fix self.models.push undefined

Found this by running petstore.  Now works fine.