Bug #2401 CCLabelBMFont crashes

Bug #2401
CCLabelBMFont crashes in glDrawElements of CCTextureAtlas::drawNumberOfQuads sometimes

May I ask how to fix this error?
My version 2.1, because the game has been a lot of development, the current version can not be upgraded to 3.0

On which devices?

Looks like this code fixes it:

https://github.com/jllust/cocos2d-x/commit/1f3c1145362c921bf5232c4ffbca4a5245042bae