Fixed search bar disappearing forever if it is closed while the animation to expand is happening.