Display results and documents tabs only when not empty (fix #28)