fix segfault on label with failed scale check (#4781)