Skip error and go back to the foreach loop with the next value