Parsoid: Fix typeerror that caused JJB to crash.

> TypeError: cannot serialize 1 (type int)

Change-Id: Ibfc8e6a0ad26ffb2090d7cdc1ffc54c81bb067c5