Added operator= overload for nullptr