Don't reset a failed (but cached) workspaced Element
Description
If a workspace element fails to build, it is cached as failed. However, a subsequent command will reset the cache data if the workspace is not cached as a success. We should not do this.
A test has been added to ensure this behaviour. This test retrieves the logs of a failed workspace build, thus closing #1096 (closed)