On the boundary conditions for the stochastic equations of the kinetic theory of polyatomic gases