MdeModulePkg HiiDataBase: Fix the potential NULL pointer reference