GEOT-4789: Fixed empty lines support in labels rendering

When empty lines are present in a multiline label, layout and measuring code throws exceptions