Fixed a cppcheck warning on an assertion (Array index -1 is out of bounds. Otherwise there is useless condition at line XXX).