Some error messages from apptask can be very long! This cases the db update to fail. In turn causing the installationState to not be set.