Fix infinite loop when max_reconnect_attempts is reached.

Fix for: https://github.com/stompgem/stomp/issues/61