Fixed crash with the spinner bing dismissed

Fixed issue with the spinner trying to dismiss while not being attached to the window manager