Bug 838745 - Add a proper zero-based array size check to keep promo from crashing r=bnicholson