When someone "sticks to their word" it means that they are going to do what they said they were going to do. Glue is a substance used to stick objects together. When something sticks, it adheres. The joke is playing on the word stick and how it's used in "stick to their word" and literally, through glue.
Always trust a glue salesman . They tend to stick to their word .