Fix `vagrant package` to avoid nil errors [GH-1423]