Restaurant Brands International topped Wall Street’s estimates for earnings but fell short on revenue.