Use $installedVersion instead of $currentVersion
Merge pull request #7610 from owncloud/stable5-fix-updater

Backport of https://github.com/owncloud/core/pull/7609