Fix nil language crash
Fixed potential crash issue with used language not being updated in time