Don't crash when a layer doesnt have extent set