Fixed TypeErrors trying to access null variable

Fixed a issue where TaskBar tried to use variables that was null which lead to TaskBar crashing.