Section 7Detention orders not to be invalid or inoperative on certain grounds