fix issue 9768 - No line number for wrong foreach type