Contingencies protect buyers by allowing them to exit a contract under specific circumstances without losing their earnest money. Here is how each one works.