Avoid to invoke methods on undefined or null transport.
Increased timeout in case the machine runs slow.
COMETD-508 - Handling of messages in case of client-side timeout.

Fixed along with COMETD-512 and COMETD-513.

Strengthened synchronization.