Revert "Fixed composer.json being overwritten when invalid and user answers 'n'"

This reverts commit 9e505aeb0055b98d128f72715e6692950fd52848.