check for before_widget and after_widget being set before outputing them