don't try to load PDF if url is undefined