Occasional crashes in layout tests when firing the shrink-to-fit-content timer