T hey put him in custody, because it was not certain or clear what should be done to him.
They put him in custody, because it had not been declared what should be done to him.