A fix for #389

This does exactly what the title says. It's a simple fix for #389.

The issue was a missing check to see if the default host was set. The notify functions now behave as before when there is no default host set.