fixed error in index.js when initializing page middleware
fixed error in index.js when initializing page middleware

Palmabit-IT/pb-mongoose-middleware,PlayNetwork/mongoose-middleware,Palmabit-IT/mongoose-middleware