Fix EZP-21563: fatal error w/ approval wf + ezoe upload
(cherry picked from commit 443b41f136cd0a9c4c02fb870d78f397b44e5c12)