Fix location of call to goog.getUid, thanks @elemoine

This PR fixes an error by me in #1888 that was [spotted by @elemoine](https://github.com/openlayers/ol3/pull/1888/files#r11045193).