Null checks in Clear.