"Subsequent bar on the power of the court to take cognizance of an offence is of no consequence to those proceedings where cognizance was taken