Fix KinematicState::printStateInfo to actually print to the ostream given

Just fixes a small typo. I'm using it to export robot initial states.