TEIID-2616 adding better detection for mismatched protocol