bugfix: added allocation failure check for ngx_array_init().