PerformancePkg/Dp_App: Add check to avoid NULL pointer deference