handle znc buffextras sanely

Exit handlers early if $hostmask is not set. This prevents lots of errors during playback of znc
buffers when using the buffextras module and hexchat plugin.