Make lint happier by not converting a size_t to a uint32_t.
__wt_scr_alloc() can fail, check.