Support nil objects correctly.