Fixes draggable markers in Safari

After dragging a marker, it was possible that it wasn't visible anymore in Safari.