COMETD-526 - Strengthen validation of message fields.

Fixed validation check for the "subscription" field.
Avoid infinite reentrance by resetting the _timeouts and
_envelopes fields eagerly, since envelope.onFailure() may
call again onClose().
Merged branch '2.9.x' into 'master'.