optional validation of scrooge/thrift Document

I think that will make the logic cleaner and the below code simpler. You just have to do an `if (validationsErrors.isEmpty) ...`