Convert priority string to integer. If not error in foreman/lib/tasks.rb...

There is an error in foreman if the priority of the queue job is not integer but string (which should always be the case).
This leads to an error in lib/foreman/task.rb:<=> method.
This patch should fix this problem.

Let me know what you think.