Fixed error when work status update also caused an update for the work order where scheduled lines would be deleted.