Flow without trigger failed on triggers page 
I 
- create a flow with a trigger 
- remove the trigger 
- it failed on the trigger page with that error: 

```
2024-03-18 23:15:41,520 ERROR io-executor-thread-7 i.k.w.controllers.ErrorController Cannot invoke "java.util.List.stream()" because the return value of "io.kestra.core.models.flows.Flow.getTriggers()" is null
java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "io.kestra.core.models.flows.Flow.getTriggers()" is null
	at io.kestra.webserver.controllers.TriggerController.lambda$search$1(TriggerController.java:93)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at io.kestra.webserver.controllers.TriggerController.search(TriggerController.java:79)
	at io.kestra.ee.webserver.controllers.TriggerController.search(TriggerController.java:39)
	at io.kestra.ee.webserver.controllers.$TriggerController$Definition$Exec.dispatch(Unknown Source)
	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)
	at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4274)
	at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:271)
	at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:488)
	at io.micronaut.http.server.RouteExecutor.lambda$callRoute$6(RouteExecutor.java:465)
	at io.micronaut.core.execution.ExecutionFlow.lambda$async$1(ExecutionFlow.java:87)
	at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211)
	at io.micrometer.core.instrument.composite.CompositeTimer.record(CompositeTimer.java:141)
	at io.micrometer.core.instrument.Timer.lambda$wrap$0(Timer.java:193)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
```
webserver/src/main/java/io/kestra/webserver/controllers/TriggerController.java
webserver/src/main/java/io/kestra/webserver/controllers/TriggerController.java
diff --git a/webserver/src/main/java/io/kestra/webserver/controllers/TriggerController.java b/webserver/src/main/java/io/kestra/webserver/controllers/TriggerController.java
index fc7b4933ea..31e64aa960 100644
--- a/webserver/src/main/java/io/kestra/webserver/controllers/TriggerController.java
+++ b/webserver/src/main/java/io/kestra/webserver/controllers/TriggerController.java
@@ -86,7 +86,12 @@ public PagedResults<Triggers> search(
                     .triggerContext(tc)
                     .build()
                 );
-                
+
+                return;
+            }
+
+            if (flow.get().getTriggers() == null) {
+                // a trigger was removed from the flow but still in the trigger table
                 return;
             }
 
