Coverity fixes o/

These commits fix errors reported by coverity : missing null checks on ngx_array or ngx_pcalloc !