Fix deprecation warning
Merge pull request #1549 from sequelize/hotfix/assertions

Fix deprecation warning