Add a workaround for ractivejs/ractive#1383
Fix a bug in debug tool (introduced with 68d176a2d277aed2e1011cd79cf02af9525d9617)