Stopped loader.hide from failing to hide loader if it was in the process of showing.