(ITS#8585) assert in ber_get_next after connection error