Fixed "in-place" selection when coming from a new document (id<0).