It was a bad call. Or, moreso, it was probably technically a correct call, that hadn't been called all night.
That call had nothing to do with blowing a 17 point lead, or having the worst defensive quarter of the season so far. If the Celtics had showed up in the second quarter, that call wouldn't have mattered in the slightest.