element.py: Reset workspace state if last successful build is missing (1.2)
If the artifact referred to by the last successful build in the workspace state no longer exists, reset the workspace state and do not attempt to perform an incremental build instead of crashing.
Includes regression test.
This fixes #1017 (closed)