task-resolve: Fix logic error in handling child components

Don't clear the modified status of the cache if the child
component hasn't changed.