Default current_id to 0 if not set

Without this there's a bit of a bootstrapping problem.

We also shouldn't force API users to set the id, that should
be optional and the system should continue to function if
it's not set.