Value Template Error When Trigger Is NOT Fired

Since my root problem was more complicated, the solution posted didn’t solve it, but it was technically correct, and I have marked it as a solution accordingly.

My original issue was that the workaround I had created for `Wait for a trigger` Caused Trigger to Occur? stopped working. I’m guessing that I implemented and tested my workaround before I implemented the event trigger. That having been said, after some more testing and sleep, I determined that the reason I was getting null was because there was no event trigger. However, even none is a trigger, so I was able to resolve this in a way that solves my problem by doing the following:

alias: Wait Trigger Test No Choose
description: Proving out issue in more complex automation by removing all other variables.
trigger: []
condition: []
action:
  - service: notify.mobile_app_iphone
    data:
      title: Test Automation Triggered
      message: Take action, or don't.
      data:
        actions:
          - action: "{{'cancel_'~context.id}}"
            title: Cancel Test
  - wait_for_trigger:
      - platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: "{{'cancel_'~context.id}}"
        id: iPhone Cancel
    timeout:
      hours: 0
      minutes: 0
      seconds: 30
      milliseconds: 0
  - if:
      - condition: not
        conditions:
          - condition: template
            value_template: "{{wait.trigger.id=='iPhone Cancel'}}"
    then:
      - service: notify.mobile_app_iphone
        data:
          message: You didn't do anything, and the value template didn't fail.
          title: Test Status
    else:
      - service: notify.mobile_app_iphone
        data:
          title: Test Staus
          message: You pressed the cancel button, or the value template failed.
mode: single

For the record, I didn’t test this exact template, as I had modified my original test quite a bit before I realized I could add trigger ids in conditions outside of the automation triggers section, but I did copy and paste the relevant bits from my last iteration, so this should at least exemplify a viable alternative solution when using the none trigger isn’t ideal.