Fix traceback in publish module

This fixes #5959 by re-casting the timeout value so that it is of the
proper type to be passed to time.sleep. Salt CLI args are loaded as
strings, which time.sleep does not like.