Fix bad dumpJson output when skipping entities.

dumpJson would write a separator (",") even when skipping
entities that could not be loaded, causing invalid JSON output.

Change-Id: Ief7664d69f30b069207c17018fa7556b89ec17e5
Merge "Fix bad dumpJson output when skipping entities."