Catch an expected undefined key exception when importing