Avoid AttributeError if attrs isn't set.