fixed Covertity issue 1147704. We were checking to see if an
 array was null instead of checking to see if the first element
 was set to 0. TRQ-2424