Fix case where package.versions didn't exist at all