remove adding a p and br tag when element is empty