For some RPC encoded arrays, size of array can be in more complex format like [][2]. For such webservices we get parse exception. With this fix we return default -1 value and everything works correct.