PLAT-603: fix null handling in epoch counter

Sidekick: @nathanhumbert