scrub minidom documents from json encoding

Change-Id: I4bbe952a840bdd9c56c758cf298942f0e782ab7c
if the file can't be opened, treat it as empty

Change-Id: Icc219995f1bae649d3921e1aa7c2e7c6c4fcab4d