Fix error on check exclude from download composer.json

@lcf reports an error on check exclude from downloaded `composer.json` (https://github.com/composer/composer/commit/ca7cb68dd5739b0405b3de5f4854cda44d9660e3).