It sounds like the toilet is sucking the water from the p-trap on the lav.
The reason it doesn't always happen, is that the previous flush sucked the trap dry.
If the trap dries out, sewer gas can enter the home.
If the lav is plumbed right, the trap won't siphon dry.
An easy fix is to add a Studor vent like in the picture.