fix new_resource access from https://github.com/gravitystorm/application_nodejs/compare/cook-4004