Use selected document id in doc commands when no identifier is
specified.