Fix typo in config parser and improve error handling.

Corrected bad logic in parser, and remove queues that fail
load cleanly.

Change-Id: I5db7135aec800bc7b99776974dab889477efb8a2
Prevent race condition in QueueLocal.

On windows builds (and possibly other platforms), the started(), finished(),
and error() signals from QProcess are handled in functions that check
m_runningJobs. If these signals are emitted while control is still in
QProcess::start, the handlers will check m_runningJobs before the job's
information is added, causing the job to appear stuck in the "Queued local"
state.

Change-Id: I0d27da2ace16bcaf55c0ee71a464909529e3be6c
Merge topic 'parse-config-fix' into master

57c5b466 Prevent race condition in QueueLocal.
f35f372e Fix typo in config parser and improve error handling.