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