comdlg32: Prevent a NULL pointer dereference (Coverity).