Update advapi32.d

FreeLibrary was always being called on a null argument.
Fix exception always being thrown.