Convert menu item to seperator only when string is NULL.