fixes #5520 saving content with the expire date before the publish date