Fix UI fog overlay ocassionally throwing an NRE in demo