Fix incorrect arguments parsing on app restart.

Should fix #913
1 job for master in 10 minutes and 34 seconds (queued for 104 minutes and 33 seconds)