Add an assertion as requested by @bmihelac.