fix(typeahead): add guard for destroyed $scope
fix(typeahead): add guard for destroyed $scope

- Add guard against accessing $scope when it has been destroyed

Closes #5267

vfiles/bootstrap,infowrap/bootstrap,benhalverson/bootstrap,RobJacobs/bootstrap,byronigoe/bootstrap,burlhock/bootstrap,byronigoe/bootstrap,mabi/bootstrap,caoruiy/bootstrap,Servoy/bootstrap,Servoy/bootstrap,292388900/bootstrap,RobJacobs/bootstrap,christor/bootstrap,looker/bootstrap,BookingBug/bootstrap,wesleycho/bootstrap,vfiles/bootstrap,292388900/bootstrap,fpipita/bootstrap,shootermv/bootstrap,Foxandxss/bootstrap,wesleycho/bootstrap,Kpler/bootstrap,infowrap/bootstrap,BookingBug/bootstrap,Foxandxss/bootstrap,angular-ui/bootstrap,icfantv/bootstrap,benhalverson/bootstrap,mabi/bootstrap,christor/bootstrap,angular-ui/bootstrap,benhalverson/bootstrap,benhalverson/bootstrap,shootermv/bootstrap,looker/bootstrap,Kpler/bootstrap,fpipita/bootstrap,caoruiy/bootstrap,burlhock/bootstrap,icfantv/bootstrap