Since 202d57ea we wrap the items on clipboard on groups but this function don`t handle it and before this MR get the container group id.
Steps to reproduce: Use any function that call get first item id like LPE clone or booleans try to link another item, and nothing happends.
/cc @speleo3