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.
Merge pull request #5966 from terminalmage/issue5959

Fix traceback in publish module