add try-catch bloc for predict non-consistent DB

Error at searching pipes #268