[addons][Fix] Make the auto update of addons work again.
This fixes a regression introduced by 2b35f385c5d62d19b6857b1baf56f0d509f51545.
Merge pull request #5302 from ace20022/fix_autoupdate

[addons][Fix] Make the auto update of addons work again.