publisher: fix time comparison for Lua 5.1

It seems Lua 5.1 does not allow comparing tables (with __lt meta method)
to numbers. Works just fine on 5.2. Just convert Duration to number
before comparing fixes it.