Minor code structure clean ups in JsonLdRdfWriter
This is a direct follow up for the review I did in I77d6a77. Instead of
leaving comments there, I fixed everything I can myself here in this
follow up patch.
Bug: T44063
Change-Id: Ice0706146d9acbe97140f6f0336db521ba8a9b53