MdeModulePkg: Fix potential integer overflow issue