The borders (and other style attributes) where sometimes lost when a style was composed:
When a NamedStyleKey substyle where encounter the style was cleared
loosing all already loaded substyles. As the NamedStyleKey substyle can appear in any position
in the list the loss was random.
Fixes T5086
Fixed-in: 3.0.1