optional validation of scrooge/thrift Document

We need to retain path to the offending file. Using flatMap would require introducing Options and flattening what would result in more complicated code.