Some minor fixes for the perf tools json event code

From: Andi Kleen
Date: Wed Oct 05 2016 - 15:47:57 EST


Fix some issues that turned up in recent testing.

-Andi