Fix errors from logging in the purge jobs related to the message retention policies support.