Device for applying a tissue adhesive