Corrected Conditional Logic and Commented Code

The conditional logic meant markup outputted even if the condition was
not met and no widget were added to a sidebar. This has been
correcrted, placing the logic within the conditional check rather than
outside.