Inverness wasted an opportunity to close on Premiership leaders Celtic with a gaffe by keeper Dean Brill handing Partick Thistle the spoils in a 2-1 victory.