Fix error when req.sessionID contains a non-string value

fixes #103