Re #8909. Fixed a crash caused by TiledWindow's clear() method.