make weblink size return 0 if not applicable to avoid potential null poi...

...nters from sdk consumer