fix closure errors in Format.OSM
Merge pull request #1187 from bartvde/osmformat

fix closure errors in Format.OSM (r=@sbrunner)