If you omit the first caption, then the following captions are shifted
into this position, meaning the the captions are off by the number of
empty captions in front.
This happens because the captions are stored with a newline "\n" as
separator which is removed by a trim = 1.
Remove this trim from tt_content.image.20.caption.1.1 as the trimming of
the actual content happens with
tt_content.image.20.caption.1.stdWrap.trim = 1.
The change also has a few cleanups that popped up in PhpStorm while
investigation the issue.