Fixing handling of task execution policy embedded in a dynamic execution_policy