check for null location name

I have no idea why this is happening.