Allow restoring a null objectId by passing None to restore