HA doesn't like this automation, don't know why

  - id: Range_Lighting_Off
    alias: 'Range Lighting Off'
    trigger:
      - platform: state
        entity_id: alarm_control_panel.house
        to: 'armed_away'
      - platform: state
        entity_id: alarm_control_panel.house
        to: 'armed_home'
      - entity_id: binary_sensor.kitchen
        platform: state
        to: 'off'        
        for:
          minutes: 20
    condition:
      condition: state
      entity_id: light.kitchen_range_lighting
      state: 'on'
    action:
      - service: light.turn_off
        entity_id: light.kitchen_range_lighting
      - condition: template
        value_template: "{{ is_state('media_player.forked_daapd', 'playing') }}"
      - service: media_player.turn_off
        entity_id: media_player.forked_daapd

I get this error in my logs

* Range Lighting Off: Error executing script. Unexpected error for call_service at pos 3: 'NoneType' object is not iterable
* While executing automation automation.range_lighting_off

however "{{ is_state('media_player.forked_daapd', 'playing') }}" does return a true/false result so it’s not that I’ve got the wrong name down? Also, it seems to work in spite of the error!

Cheers