Create parents when writing `nothing` (fix #76)