[#2212] CID49426:

Avoid negative indexing of arrays