Fix container.get_next_id bug

Change-Id: Ia7238667b05fd6f969fc087af0f82dea38a3932d