diff --git a/common/src/Form/CollectSettingsFormBase.php b/common/src/Form/CollectSettingsFormBase.php
index b7a2640..c8bd1dc 100644
--- a/common/src/Form/CollectSettingsFormBase.php
+++ b/common/src/Form/CollectSettingsFormBase.php
@@ -100,7 +100,7 @@ abstract class CollectSettingsFormBase extends ConfigFormBase {
       $form['entity_capture'][$entity_type]['fields'] = array(
         '#title' => $this->t('List of fields for reference capturing'),
         '#type' => 'fieldgroup',
-        '#access' => $base_reference_fields,
+        '#access' => (bool) $base_reference_fields,
         '#description' => $this->t('You can select fields that can be used to capture referenced entities.'),
       );
       $headers = [
diff --git a/src/Tests/CollectWebTest.php b/src/Tests/CollectWebTest.php
index 66d920c..403adc0 100644
--- a/src/Tests/CollectWebTest.php
+++ b/src/Tests/CollectWebTest.php
@@ -49,6 +49,9 @@ class CollectWebTest extends WebTestBase {
     $this->drupalLogin($admin);
     $this->drupalGet('admin/config/services/collect');
 
+    // Assert that reference fields table is not displayed if it is empty.
+    $this->assertNoText(t('There are no fields that can be used for reference capturing.'));
+
     // Default uid field should be checked.
     $this->assertText(t('Standard user references have been selected by default.'));
     $this->assertFieldChecked('edit-entity-capture-node-fields-reference-fields-uid');
