create_loc_conf must return NULL on error

This is same problem as: https://github.com/openresty/echo-nginx-module/pull/35