This patch fixes the misleading error message when users try to "export all" into an invalid destination path. Closes #26539