fix #21458: Bar rests not presented correctly at line break before key and time signature change