SSLR-264 Fix possible ArrayIndexOutOfBoundsException