Optimize restore source JSON serialization

Don't print "restore_source":  null if restore source is null, omit entire line instead