urlglob: avoid NULL pointer dereference

Thanks to clang-analyzer