Fixed the player crashing when it shows then hides a null element.