On groups which contain no HNN-estensions