You could get a flexible National Express ticket if your main concern is which bus to get.
Significant delays, either to your flight or your baggage, have no good bus answers. Past the 23:45 bus, the next one is at 03:something. If you're staying overnight, perhaps you could prepare to stay at the Gatwick hotels (for example, the giant Hilton there) and travel early in the morning?