The assert that triggered in #1363 was to restrictive.

Fixes #1363