Null error fix

error fix, kinda. Just masked with a try-catch. Not my fault if things
get weird after that. It's your fault for causing the error.