A convergence condition for optimal nonlinear filtering for systems with unknown parameters