Fixed coverity issue 1187608. Dereferencing a pointer
 before it was checked for NULL in get_array.