Fix issue with generators and empty for loop headers