On the chain rule in Goodwillie calculus