Fixed null values at get('/documents/:id') route.