validate tileprovider if undefined