Add an assert and a unittest for a bug in KisTiledExtentManager
The assert should not cause any crashes, only artifacts because of invalid extents are possible.