Tika must be the last detector (it causes problems with mark()-ed streams)
Fix logic trap