Clear the default gateway var before (re)using it.

This fixes bug #199