Reset component to null on inspector close