MdeModulePkg/PiSmmCore: fix bits operation error on a boundary condition