wmail: fixed NULL-pointer dereference if opendir(3) fails.