Relay plugin: Fix problem with disconnecting on frame length 0

This fixes a problem with Internet Explorer getting disconnected from relay after 30 seconds of idle.