Make sure getting path works even if get_subassistant_chain wasn't called before
Move is_run_as_leaf from YamlAssistant to AssistantBase, as it is generally useful for all assistants