Fixed issue with saving reports on javascript error

* Openlayers throws error that prevents saving
* closed #138