text: Title: [🐛 BUG] Scenario Selector: "Delete" button is active/inactive when it shouldn't
  Body: ### What went wrong? 🤔
  
  "Delete" button in scenario selector (when editing the scenario) is active when it should be inactive and vice-versa.
  
  ![image](https://github.com/user-attachments/assets/e923dd3d-4ee2-4c04-b26d-1f9a8c2f344e)
  
  
  ### Expected Behavior
  
  They should be active (clickable) when the scenario can be deleted.
  
  
  ### Steps to Reproduce Issue
  
  Run this code, create a scenario and edit the scenario in the scenario selector. You should see the "Delete" button.
  
  ```python
  
  from taipy import Config, Frequency
  import taipy as tp
  import pandas as pd
  import datetime as dt
  
  
  data = pd.read_csv(
      "https://raw.githubusercontent.com/Avaiga/taipy-getting-started-core/develop/src/daily-min-temperatures.csv"
  )
  
  
  # Normal function used by Taipy
  def predict(
      historical_temperature: pd.DataFrame, date_to_forecast: dt.datetime
  ) -> float:
      print(f"Running baseline...")
      historical_temperature["Date"] = pd.to_datetime(historical_temperature["Date"])
      historical_same_day = historical_temperature.loc[
          (historical_temperature["Date"].dt.day == date_to_forecast.day)
          & (historical_temperature["Date"].dt.month == date_to_forecast.month)
      ]
      return historical_same_day["Temp"].mean()
  
  
  # Configuration of Data Nodes
  historical_temperature_cfg = Config.configure_data_node("historical_temperature")
  date_to_forecast_cfg = Config.configure_data_node("date_to_forecast")
  predictions_cfg = Config.configure_data_node("predictions", storage_type="json")
  
  # Configuration of tasks
  predictions_cfg = Config.configure_task(
      "predict",
      predict,
      [historical_temperature_cfg, date_to_forecast_cfg],
      predictions_cfg,
  )
  
  # Configuration of scenario
  scenario_cfg = Config.configure_scenario(
      id="my_scenario", task_configs=[predictions_cfg], frequency=Frequency.MONTHLY
  )
  
  
  if __name__ == "__main__":
      # Run of the Core
      tp.Core().run()
  
      # Creation of the scenario and execution
      scenario = tp.create_scenario(scenario_cfg)
      scenario.historical_temperature.write(data)
      scenario.date_to_forecast.write(dt.datetime.now())
      tp.submit(scenario)
  
      scenario_md = """
  <|{scenario}|scenario_selector|>
  
  <|{scenario}|scenario|>
  """
  
      tp.Gui(scenario_md).run()
  
  ```
  
  ### Screenshots
  
  ![image](https://github.com/user-attachments/assets/094d2c5d-6c38-4ee3-833f-97b3bbd86a9f)
  
  
  ### Version of Taipy
  
  4.0.0
  
  ### Acceptance Criteria
  
  - [ ] Ensure new code is unit tested, and check code coverage is at least 90%.
  - [ ] Create related issue in taipy-doc for documentation and Release Notes.
  
  
  ### Code of Conduct
  
  - [X] I have checked the [existing issues](https://github.com/Avaiga/taipy/issues?q=is%3Aissue+).
  - [ ] I am willing to work on this issue (optional)ue (optional)