self-updater: Add missing when function