What is the purpose of the tabs div when logged out?
The tabs div will contain links even when logged out on some pages, such as the user page, where logged-out users can choose to either "Create new account" "Login" or "Request new password" by using the tabs.

Instead of removing it you can prevent it from taking up space when empty using CSS to remove the padding and margins on the div.