bug fix: skip when tenant is None in app_directories template loader