Fix fail condition for getIdFromUidCid()