Even more happy

This should both make Dialyzer happy and the code not crash.
Waiting for changes to be merged into madtrick/wsecli and madtrick/wsock.