Fixed bug in loading animations so the animation is removed from the DOM, even when there are no more results to be displayed.