ShellPkg/DP: Add more check for input parameters