[SPARK-3518] Remove wasted statement in JsonProtocol