Update HtmlPurifierBehavior.php

beforeValidate was added to the behavior to validate the data after purifying is complete.

Originally , after validation was completed at the time of saving behavior saves the purified data which may even have no content in some cases.