Use addon.versions.no_cache()[0] rather than addon.latest_version after ...

...creating new langpack add-on.