Set heartbeat timer if needed, even if send_buffer is not empty

Fixes #143