Fixing Chrome Issue that freezes window while trying to view the map.

Issue NuCivic/dkan#209:

### Acceptance test

- [ ] Build dkan using this branch
- [ ] Try to view a resource with a map view
- [ ] It should not hang