Fixed hack so it only removes 'empty' <p> elements.