should throw error if tried to destroy ns.Model with undefined