Make checkCStringArray correctly handle arrays that are null terminated but
contain uninitialized elements following the null element.