Don't dereference world pointer when it is null.