Fix resource restoration for buildlog actions.