Hide the panels if there's nothing to show (outside bbp pages)

Thanks JJJ