Reference this page:
I have a problem where the wp_get_links function is producing a blank entry. The funny thing is sometimes it appears, sometimes it doesn’t. I can view that page and every category will show a blank entry. I refresh and then some categories display perfectly while others do not. Any thoughts on how to completely eliminate that blank entry?
The code used for each section of links is:
<li> <?php _e('Section Name'); ?>
<li><?php wp_get_links(N); ?></li>