Fixed a possible NULL-pointer access in DWMAPI wrapper code when DWM is not available.