Fix `packagist:dump` throw an exception when `web/packages.json` does not exist