Fixed an undefined index notice when using sentAs with the response JsonVisitor.