Avoid negative array index in BIO_debug_callback()