Guess display units to use in grid settings
If namedview does not have display units attribute, use document units instead, in line with what namedview itself is doing.
Opening v1.2 document with non-pixel units and existing grid will now default to that document units in grid properties.