Fix send_command to trigger flush_pending if @pending exists

In original code, flush_pending is triggered(EM.next_tick) when @pending is nil,
and flush_pending does nothing if @pending is nil.
In my environment, published message does not deliver to server until periodic
ping triggered.