RegexInterpreter Used When NLU Model Not Present is Causing Intent Prediction Issues
 _Rasa version_ : 2.7.1

 _Operating system_ (windows, osx, ...): Linux

 _Issue_ : When the NLU model is still being loaded into memory, [this case for the NLU interpreter object| [https://github.com/RasaHQ/rasa/blob/main/rasa/core/interpreter.py#L32](https://github.com/RasaHQ/rasa/blob/main/rasa/core/interpreter.py#L32)] will not apply and the RegexInterpreter gets used as the default. As a result, the user's raw input text gets predicted as the intent, e.g. `intent=Intent(name=Hello I needed help to follow up on my extension I needed for my bill, confidence=1.0)`.

This is causing problems for customers that are using production data to analyze intent distribution since the predicted intent ends up being assigned as the raw text.
diff --git a/rasa/core/interpreter.py b/rasa/core/interpreter.py
index fdd764b7e5f..c368be415a2 100644
--- a/rasa/core/interpreter.py
+++ b/rasa/core/interpreter.py
@@ -170,10 +170,11 @@ def _create_from_endpoint_config(
     endpoint_config: Optional[EndpointConfig],
 ) -> rasa.shared.nlu.interpreter.NaturalLanguageInterpreter:
     """Instantiate a natural language interpreter based on its configuration."""
-
-    if endpoint_config is None:
-        return rasa.shared.nlu.interpreter.RegexInterpreter()
-    elif endpoint_config.type is None or endpoint_config.type.lower() == "http":
+    if (
+        endpoint_config is None
+        or endpoint_config.type is None
+        or endpoint_config.type.lower() == "http"
+    ):
         return RasaNLUHttpInterpreter(endpoint_config=endpoint_config)
     else:
         return _load_from_module_name_in_endpoint_config(endpoint_config)
@@ -183,15 +184,20 @@ def _load_from_module_name_in_endpoint_config(
     endpoint_config: EndpointConfig,
 ) -> rasa.shared.nlu.interpreter.NaturalLanguageInterpreter:
     """Instantiate an event channel based on its class name."""
-
     try:
         nlu_interpreter_class = rasa.shared.utils.common.class_from_module_path(
             endpoint_config.type
         )
         return nlu_interpreter_class(endpoint_config=endpoint_config)
     except (AttributeError, ImportError) as e:
-        raise Exception(
-            f"Could not find a class based on the module path "
-            f"'{endpoint_config.type}'. Failed to create a "
-            f"`NaturalLanguageInterpreter` instance. Error: {e}"
-        )
+        if endpoint_config:
+            raise Exception(
+                f"Could not find a class based on the module path "
+                f"'{endpoint_config.type}'. Failed to create a "
+                f"`NaturalLanguageInterpreter` instance. Error: {e}"
+            )
+        else:
+            raise Exception(
+                f"Endpoint configuration not found. Failed to create a "
+                f"`NaturalLanguageInterpreter` instance. Error: {e}"
+            )
['rasa/core/interpreter.py']