Fixes sendSignal and message emitting to ignore invalid messages.