Prevents a NilObject crash.