Fix handling of empty versions.json