Prevent null reference.

I _think_ this is where it's occurring.
Haven't had a change to debug yet.