MdeModulePkg/NonDiscoverable: fix memory override bug