If the snake accidentally took in a mouth full of substrate, it is quite possible that the saliva is a side affect of that. I would monitor the snake closely for a day or two. If the substrate is not present and the snake still has saliva/mucous/bubbles coming from the nose or mouth, or is making a wheezing noise, you need to see a vet. A Respiratory infection can only be treated by antibiotics from a vet.