Use proper array lenght

See PR #1233 and discussion therein.
(cherry picked from commit b8c3f61c907d58a024e7122a7549fff8de75a482)
[maven-release-plugin] prepare release jenkins-1.564
[maven-release-plugin] prepare for next development iteration
updated changelog for release
updated changelog as a part of the release