Task_name in path template from context

Hello there!

I added {task_name} to a houdini path template in the templates.yml file.

houdini_shot_work:
        definition: '@shot_root/work/houdini/{Sequence}_{Shot}_{Step}_{task_name}_v{version}.hip'

task_name is configured like this:

    task_name:
        type: str
        shotgun_entity_type: Task
        shotgun_field_name: content

But this way, when I want to use the default File Save… I get the following error:

File "C:\Users\username\AppData\Roaming\Shotgun\asdf\p782c167.basic.desktop\cfg\install\core\python\tank\platform\engine.py", line 3356, in __pick_environment
    raise TankUnresolvedEnvironmentError(
tank.platform.errors.TankUnresolvedEnvironmentError: Engine tk-houdini cannot initialize - the pick environment hook was not able to return an environment to use, given the context Step Light. Usually this is because the context contains insufficient information for an environment to be determined.

Also this means the path cannot be resolved, so it wants to start from v001, but if I select the task manually, everything becomes working again.

How to make Task data accessible to the path resolver in this case?

Thanks is advance!

Interestingly enough this works in Maya just fine. Same path templates.

Also in Houdini the context.task is None, while in Maya it has the proper data.