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.
Merge pull request #9 from zchrykng/patch-1

handle znc buffextras sanely