Was there a later flight from BKK that would connect with the LAX flight with a shorter connection? It's the shortest possible connection on your routing being over 8 hours that counts. If a shorter connection in DOH is on the timetable but you didn't book it, then your journey does not meet the conditions for stpc.