County prosecutors charged a teenager with looking at kiddy porn. Turns out they hadn't done their homework