Script error when closing map modal
Check if this.element is null or undefined
Merge pull request #1071 from reciprocity/feature/map-modal-script-error

Script error when closing map modal