The get_next_id must be string to avoid breaking existing code

The cast as string was left out of the recent patch. Adding it again.

Change-Id: I13ca9432b9ae892886e07ad669274ff4186dfba4