Fix repeated emission of the finished() signal in JsCommandExecutor.

This currently happens always if the command fails, resulting in an
assertion.

Change-Id: If3de00a2f0e7d89bd052a6ab74bf4237be82e913
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>