Developmental instability as a bet-hedging strategy