mod_bidi: add more sanity conditionals to prevent offering bidi on faulty streams.