Fix some render crashes in sheet ruler.