GCC 4.8 warning array subscript is above array bounds fixed.

I know about such solution but it looks strange and does not solve problem in common. We can get the same warning in some other place in future. I'll port solution from master.