Fix issue where progress HUD would disappear immediately when search tab was selected

The issue originated from a misunderstanding of the order in which the view controller lifecycle methods are called.