fix display of workers 

Same fix as the one at:
https://github.com/nvie/rq-dashboard/commit/f81c8dac2af908fb1f6d94538bb56520af67874f
Accessing worker.state now raises a DeprecationWarning, which in turn causes worker.json generation to fail.  Use the new worker.get_state() instead.