Custom Margins: Default to 0 for missing values

Tolerate non-existent custom margins values in C++, by setting the
margin field to 0 if it does not exist. This will prevent the crashes
in the linked bug, and is safer than merging larger changes to the
Print Preview JS that will prevent this from happening.

This is a short term workaround; we will change this back to a stricter
check after landing larger changes in Print Preview JS to prevent bad
custom margin values from being sent.

Bug: 942211
Change-Id: I978fdf65519efc0d6a0d6379c2266e330908fc0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529314
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#642002}
1 file changed