[paragraph] Make tests less likely to crash

If a contatiner is not of the expected length do not access the expected
elements of the container. This change makes the tests more commonly
fail naturally rather than crashing when something unexpected happens.

Change-Id: I772e98ba563766f2e46dbfa7c691cdc1635663d1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/854777
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Dominik Röttsches <drott@google.com>
Commit-Queue: Dominik Röttsches <drott@google.com>
1 file changed