Allow for attrs == nil in MapValue()

Allow calling MapValue(m,path,nil).  Refactor DocValue() to use this
feature.