Minor optimization: a CursorBinding only needs to be created if the cursorId is not zero.