add backwards compat: user_id attr should exist even if no value set, but not be serialized.