[SPARK-4079] [CORE] Code review feedback

Removed the fallback logic and now just throws an
IllegalArgumentException if you specify a bad codec
or one that is not available like Snappy.