fix(output): guard against undefined post* middleware
fix(output): guard against undefined post* middleware

Ensequence/express-restify-mongoose,xdotai/express-restify-mongoose,florianholzapfel/express-restify-mongoose,qlayer/express-restify-mongoose