#952 Allowing to set next_id to null to set an element as the last