[PLAT-3944] refactored so logging of a failed rule application cannot throw an exception