Allow setting attributes to None as a noop, for convenience.