When Does the Market Matter? Stock Prices and the Investment of Equity-Dependent Firms