[1.6.x] Prevented rendering attrs to be squashed in OSMWidget

Backport of b6889c68d7 from master.