shell32: Avoid leaks and add parameter checks in SHCreateShellFolderView[Ex].