You should be able to get a tour or a taxi to take you to the top of the rock, there are roads, you don't have to walk even if the cable car is down.
Some of the tour prices are crazy, but it shouldn't be more than about £30 to get to the top in a shared minibus and the walk *down* is fine