Fix bug with throwing exception if optional file cannot be found.