Drupal 8 geolocation Cannot read property 'find' of undefined

https://www.drupal.org/project/geolocation/issues/2995478

Got this error in Version: 8.x-3.0-rc6.

The fix in the patch is already applied in this version. So, this issue is caused by something else.

.geolocation-widget-input

    $element = [
      '#type' => 'geolocation_input',
      '#attributes' => [
        'class' => [
          'geolocation-widget-input',
          'geolocation-widget-input-' . $delta,
        ],
        'data-geolocation-widget-input-delta' => $delta,
      ],
    ];

<fieldset class="geolocation-widget-input geolocation-widget-input-0 js-form-item form-item js-form-wrapper form-wrapper" data-geolocation-widget-input-delta="0" data-drupal-selector="edit-field-geolocation-0" id="edit-field-geolocation-0">
      <legend>
    <span class="fieldset-legend"></span>
  </legend>
  <div class="fieldset-wrapper">
            <div class="js-form-item form-item js-form-type-textfield form-type-textfield js-form-item-field-geolocation-0-lat form-item-field-geolocation-0-lat">
      <label for="edit-field-geolocation-0-lat">Latitude</label>
        <input class="geolocation-input-latitude form-text" data-drupal-selector="edit-field-geolocation-0-lat" type="text" id="edit-field-geolocation-0-lat" name="field_geolocation[0][lat]" value="39.762008163213" size="60" maxlength="128">

        </div>
<div class="js-form-item form-item js-form-type-textfield form-type-textfield js-form-item-field-geolocation-0-lng form-item-field-geolocation-0-lng">
      <label for="edit-field-geolocation-0-lng">Longitude</label>
        <input class="geolocation-input-longitude form-text" data-drupal-selector="edit-field-geolocation-0-lng" type="text" id="edit-field-geolocation-0-lng" name="field_geolocation[0][lng]" value="-84.18374175" size="60" maxlength="128">

        </div>

          </div>
</fieldset>

 


 /**
   * Marker InfoBubble.
   *
   * @type {Drupal~behavior}
   *
   * @prop {Drupal~behaviorAttach} attach
   *   Attaches common map style functionality to relevant elements.
   */
  Drupal.behaviors.geolocationMarkerInfoBubble = {
    attach: function (context, drupalSettings) {
      Drupal.geolocation.executeFeatureOnAllMaps(
        'marker_infobubble',

        /**
         * @param {GeolocationGoogleMap} map - Current map.
         * @param {MarkerInfoBubbleSettings} featureSettings - Settings for current feature.
         */
        function (map, featureSettings) {
          map.addMarkerAddedCallback(function (currentMarker) {
            var content = currentMarker.locationWrapper.find('.location-content').html();

            if (content.length < 1) {
              return;
            }


geolocation/modules/geolocation_google_maps/js/MapFeature/geolocation-marker-infowindow.js has

        function (map, featureSettings) {
          map.addMarkerAddedCallback(function (currentMarker) {
            if (typeof (currentMarker.locationWrapper) === 'undefined') {
              return;
            }

            var content = currentMarker.locationWrapper.find('.location-content');

            if (content.length < 1) {
              return;
            }
            content = content.html();

geolocation-marker-infobubble.js has

        function (map, featureSettings) {
          map.addMarkerAddedCallback(function (currentMarker) {
            var content = currentMarker.locationWrapper.find('.location-content').html();

            if (content.length < 1) {
              return;
            }

Needs to be made parallel.