ntdll: fix RtlCheckRegistryKey when called with parameter path being null or empty