KeyError when sending broadcast

Fixes #83
Cannot send broadcast in web UI

fixes #84, credit to @fabiociotoli