You should definitely move the null check inside the timer on OnEntitySpawned.