Fix rendering under SlimerJS (clipRect could not be null)