The init script should check if the client ID and Client Secret are not null in order to continue with the configuration process. In case that they are null it should inform to the user that something is wrong and stop the script or request new data.