Add missing assertion.
Merge pull request #1 from frodsan/patch-1

Add missing assertion.