Do not serialize the Logger instance

Change-Id: Icbef95e95d05fa8d7dbdc750241252d291083820
Fix potential NPE on getting Markdown content

Change-Id: Ie245da271ad1e7c90b1fab46832f9ecc7b5d297a