Mark assembly as ERROR on build failures

Assemblies that failed during BUILD in a few cases
were stuck as BUILD forever because of premature exits
from the build() method. This patch adds some calls to
update_assembly_status to mark them as ERROR.

Closes-Bug: #1391596

Change-Id: I64c15abe6cef457e621e76e078d614108eba738a
Merge "Mark assembly as ERROR on build failures"