Set status to "failed" if the log contains errors

If there is an error during catalog compilation, but the agent uses the cached catalog, then dashboard will not show the error when the run was successful.
Merge pull request #285 from ZeroPointEnergy/patch-1

Set status to "failed" if the log contains errors