Fixed the problem with copying terms by fixing a bug with JSON
serialization where a null parameter was converted into the string
"null".