fix to prevent crashing when no req.cookies are present