[1.6.x] Fixed syntax error in OSMWidget

Backport of 6ecbac21a from master.