MdeModulePkg/CapsuleLib: Fix runtime issue