Fixed potential HHVM bug caused by json_encode and debug mode.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>