board/sys: move bounds check before array access
Merge pull request #1663 from N8Fear/arrayIndexCheck

lint: fix array indices being used before limit check