Update advapi32.d

FreeLibrary was always being called on a null argument.
Fix exception always being thrown.
Merge pull request #2114 from damianday/patch-1

Update advapi32.d